package com.cloud.mall.usr.service;

import com.cloud.mall.base.BaseResponse;
import com.cloud.mall.model.user.LoginAppUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "会员登入服务接口")
public interface AppUserService {

    @ApiOperation(value = "根据登入账号名获取用户登入信息")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "id", dataType = "String", required = true, value = "用户名称"), })
    @GetMapping("/users-anon/internal")
    BaseResponse<LoginAppUser> findByUsername(@RequestParam("username") String username);

    @ApiOperation(value = "当前登录用户 ")
    @GetMapping("/users/current")
    BaseResponse<LoginAppUser> getLoginAppUser();
}
